package cn.tedu.csmall.product.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateNewDto implements Serializable {
    @ApiModelProperty(value = "名称",required = true)
    @NotNull(message = "必须填写模板名称！")
    private String name;

    @ApiModelProperty(value = "拼音",required = true)
    @NotNull(message = "必须填写模板拼音！")
    private String pinyin;

    @ApiModelProperty(value = "关键词", required = true)
    @NotNull(message = "必须填写模板关键词！")
    private String keywords;

    @ApiModelProperty(value = "序号",required = true)
    @NotNull(message = "必须填写模板序号！")
    @Range(max = 255,message = "排序序号必须是 [0, 255] 区间的数值！)")
    private Integer sort;
}
